#include <iostream>
using namespace std;
#include <vector>

int main(int argc, const char *argv[]){
    vector<int> my_vect;

    int input = 0;
    // 输入
    while(1){
        cin >> input;
        if(-1 == input)
            break;
        my_vect.push_back(input);
    }

    int my_max = my_vect.at(0);
    int my_min = my_vect.at(0);
    int sum = 0;
    for(int i = 0; i < my_vect.size(); i++){
        if(my_vect.at(i) > my_max){
            my_max = my_vect.at(i);
        }
        if(my_vect.at(i) < my_min){
            my_min = my_vect.at(i);
        }
        sum += my_vect.at(i);
    }
    double aver = (double)sum / my_vect.size();
    cout << "最大值:" << my_max << "  最小值:" << my_min << "  平均值:" << aver << endl;

    return 0;
}